package com.example.lj.uav.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by 110 on 2018/3/26.
 */

public class MyDate {

    public static String getDate() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        String date = format.format(new Date(System.currentTimeMillis()));
        return date;
    }

    public static String getTime() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
        String date = format.format(new Date(System.currentTimeMillis()));
        return date;
    }

}